<?php

if (!isset($table_records_per_page)) {
	$table_records_per_page = $this->config->item('table_records_per_page');
}

if (!isset($action_labels)) {
	$action_labels = $this->config->item('action_labels');
}

$label['view'] = $action_labels['VIEW'];
$label['update'] = $action_labels['UPDATE'];
$label['delete'] = $action_labels['DELETE'];
$label['select'] = $action_labels['SELECT'];

$label['disabled_view'] = $action_labels['DISABLED_VIEW'];
$label['disabled_update'] = $action_labels['DISABLED_UPDATE'];
$label['disabled_delete'] = $action_labels['DISABLED_DELETE'];
$label['disabled_select'] = $action_labels['DISABLED_SELECT'];

$data_nav_labels = $this->config->item('data_nav_labels');
$label['first'] = $data_nav_labels['FIRST'];
$label['prev'] = $data_nav_labels['PREV'];
$label['next'] = $data_nav_labels['NEXT'];
$label['last'] = $data_nav_labels['LAST'];

foreach ($label as $lidx => $lval) {
	$label_template['LABEL_'.change_case($lidx, CASE_UPPER)] = $lval;
}